package cn.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class productsCon {

    @GetMapping("/products/test1")
    public String test1(@RequestParam("name")String productName){
        new com.pojo.Dog();
        log.info("商品的名字为[{}]", productName);
       return productName;
    }
}
